package com.nbot.server.mapper.master;

import com.nbot.server.domain.DeptDO;

import java.util.List;
import java.util.Map;

/**
 * Created by lovewinner on 2018/6/6.
 */
public interface DeptMapper {
    DeptDO get(Long deptId);

    List<DeptDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(DeptDO dept);

    int update(DeptDO dept);

    int remove(Long deptId);

    int batchRemove(Long[] deptIds);

    Long[] listParentDept();

    int getDeptUserNumber(Long deptId);
}
